-- GENERATED SPELL FOR [Ripfang Lynx] --


function spell0_20671(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(36589,pUnit)
pUnit:RegisterEvent('Sorts_20671', 15280, 1)
end

function spell1_20671(pUnit, Event) --@Rip,n/a--
pUnit:FullCastSpellOnTarget(36590,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20671', 15000, 1)
end

function spell2_20671(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(31279,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20671', 635, 1)
end

function Sorts_20671(pUnit, Event)
local choix_sorts_20671 = math.random(0, 2)
if choix_sorts_20671 == 0 then
pUnit:RegisterEvent('spell0_20671', 1, 1)
end
if choix_sorts_20671 == 1 then
pUnit:RegisterEvent('spell1_20671', 1, 1)
end
if choix_sorts_20671 == 2 then
pUnit:RegisterEvent('spell2_20671', 1, 1)
end
end

function mob20671_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20671', math.random(1500, 3000), 1)
end

function mob20671_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20671_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20671_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20671, 1, 'mob20671_Action')
RegisterUnitEvent(20671, 2, 'mob20671_Leave')
RegisterUnitEvent(20671, 3, 'mob20671_Kill')
RegisterUnitEvent(20671, 4, 'mob20671_Die')
